package ticketonline.service;

import java.util.List;

import ticketonline.entity.BookingDetail;
import ticketonline.entity.BookingHeader;
import ticketonline.entity.Customer;
import ticketonline.entity.Ticket;

public interface AppService {
	//Ticket
	public void saveTicket(Ticket ticket);
	public void deleteTicket(Ticket ticket);
	public List<Ticket> findAllTicket();
	public Ticket findTicketByKode(String kode);
	public List<Ticket> availableTicket();
	
	//Customer
	public void saveCustomer(Customer customer);
	public void deleteCustomer(Customer customer);
	public List<Customer> findAllCustomer();
	public Customer findCustomerByKode(Integer custID);
	
	//Transaction
	public void saveTransaction(BookingHeader bookingHeader);
	public List<Customer> findAllTransaction();
	public Customer findTransactionByKode(String id);
}
